const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token数据
  avatar: state => state.user.avatar, // 头像数据
  name: state => state.user.name, // 用户昵称的数据
  buttons:state => state.user.buttons,  // 按钮权限数组
  roles:state => state.user.roles,  // 角色权限数组
  routes:state => state.user.routes   //路由权限数组
}
export default getters
